/**
 * @Author: Bobby
 * @Date: 2021-12-30 10:01:42
 * @LastEditTime: 2022-03-01 10:17:25
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\wcsComs\basic\uiDynamicTable.js
 * @CIMC-V2
 */

import { exInput, exRequestData, exSwitch } from '@ve/common/components/extension'

export default {
  VERSION: '20220816',
  type: 'uiDynamicTable',
  //组件类型
  name: '动态表格',
  icon: 'flow-chart',
  svg: 'dongtaibiaoge',
  //子组件列表
  list: [],
  //数据集合 表单 列表等等
  data: {
    formData: {},
    requestData: {},
  },
  //表单验证
  rules: {},
  //扩展
  extension: {
    api: exInput('Api接口', ''),
    method: exInput('Method', ''),
    getDataKey: exInput('获取数据Key', ''),
    requestData: exRequestData('参数', [
      { key: '#LIMIT#', value: 1 },
      { key: '#PAGE_SIZE#', value: 50 },
    ]),
    // pageSizes: {
    //   type: 'exPageSizes',
    //   name: '分页配置',
    //   value: [50, 100, 200],
    // },
    // pageSize: exInput('默认分页', 50),
    reviseField: exInput('反转字段', '设备', '反转作为扩展列表头的字段'),
    valueField: exInput('值字段', '班组', '反转后扩展列取值的字段'),
    fixedField: exInput('静态字段', '日期,星期', '依照原值渲染的字段'),
    RDField: exInput('去重字段', '日期', '作为去重依据的字段'),
    notRequest: exSwitch('默认不请求', false, '是否在组件初始化时不自动请求接口'),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
